<?php
/*
 * File name : invite_company.php
* Description : Sends the email to the address given in inputInviteFriends
* Created By : Abhiraj Chauhan
*/
include_once "basePage.php";

class invite_company extends basePage{
	public function send_email(){
		$isSent= mail($_POST['to'], $_POST['subject'], $_POST['message']);
		
		if ($isSent)
		{
			echo "You invitation has been sent.";
		}
		else
		{
			echo "You invitation is not sent. Please check the values and resend by clicking the back button.";
		}
	} 
}

$page= new invite_company();
$page->header();
$page->include_transalte();
$page->top_menu_donor();
$page->send_email();
$page->footer();
?>